<template>
    <base-dialog  v-bind="$attrs" v-on="$listeners" :title="title" width="600px" @submit="toAdd" :no-button="disabled">
        <el-form  ref="elForm" label-width="80px" :model="formData" :rules="rules" :disabled="disabled">
            <el-form-item label="标题" prop="title">
                <el-input v-model="formData.title"></el-input>
            </el-form-item>
            <el-form-item label="排序" prop="no_order">
                <el-input v-model="formData.no_order"></el-input>
            </el-form-item>
        </el-form>
    </base-dialog>
</template>
<script>
    import BaseDialog from "../../../components/Common/BaseDialog";
    import DetailDialog from "@/mixins/DetailDialog";
    export default {
        name:"DetailDialog",
        mixins:[DetailDialog],
        data(){
          return {
              formData:{
                  title:"",
                  no_order:1
              },
              rules:{
                  title: [
                      { required: true, message: "标题不能为空", trigger: "blur" }
                  ],
              },
              categoryList:[],
              rolelist:[]
          }
        },
        created() {
        },
        components: { BaseDialog},
        computed:{
            title() {
                return "新增描述"
            },
        },
        methods:{
        }
    }
</script>
